package com.tommy.jiami.utils;
import android.database.*;
import android.graphics.*;
import android.net.*;
import java.io.*;

public class Media
{
	Bitmap thumbnail;
	File file;
	Cursor cursor;
	int type;
	String name;
	Uri fromUri;
	
	public Media(){}
	
	public Media(int type, Bitmap thumbnail, File file)
	{
		this.type = type;
		this.thumbnail = thumbnail;
		this.file = file;
	}

	public void setFromUri(Uri fromUri)
	{
		this.fromUri=fromUri;
	}

	public Uri getFromUri()
	{
		return fromUri;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getName()
	{
		return name;
	}

	public void setType(int type)
	{
		this.type = type;
	}

	public int getType()
	{
		return type;
	}

	public void setCursor(Cursor cursor)
	{
		this.cursor = cursor;
	}

	public Cursor getCursor()
	{
		return cursor;
	}

	public void setThumbnail(Bitmap thumbnail)
	{
		this.thumbnail = thumbnail;
	}

	public Bitmap getThumbnail()
	{
		return thumbnail;
	}

	public void setFile(File file)
	{
		this.file = file;
	}

	public File getFile()
	{
		return file;
	}
}
